cmake_minimum_required(VERSION 3.1)
project(vnpy_oes)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS "-O3 -Wall -Wno-unknown-pragmas -Wno-sign-compare")

if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
    link_directories(lib/linux64/dll)
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    link_directories(lib/macos64/dll)
endif()
add_subdirectory(include/pybind11)
include_directories(include/oes)

pybind11_add_module(vnoestd 
  vnoes/vnoestd.cpp
)
target_link_libraries(vnoestd PRIVATE oes_api)
